import type { VNode } from "vue";

export interface MenubarItemType {
  key: string;
  label: string;
  children?: SubItemType[];
}

export interface SubMenuItemType {
  key: string;
  label: string;
  icon?: VNode;
  extra?: VNode | string;
  onClick?: () => void;
  children?: SubItemType[];
}

export interface SubMenuDivider {
  type: "divider";
}

export type SubItemType = SubMenuItemType | SubMenuDivider;
